package com.foolishbird.sdk.params;

import com.foolishbird.sdk.params.bean.PhoneBindObj;
import com.foolishbird.sdk.params.bean.RegistObj;
import com.foolishbird.sdk.params.bean.VerifyType;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;


public class LoginPhoneRequestParams extends BaseRequestParams implements Serializable {

    private static final String SERVICE = "login_by_phone";

    @SerializedName("extended_fb")
    private PhoneBindObj extendedFB = new PhoneBindObj();

    @Override
    public Object getBusinissJson() {
        return extendedFB;
    }

    public PhoneBindObj getExtendedFB() {
        return extendedFB;
    }

    public void setExtendedFB(PhoneBindObj extendedFB) {
        this.extendedFB = extendedFB;
    }


    public LoginPhoneRequestParams(String phone, String code) {
        this.extendedFB.setPhone(phone);
        this.extendedFB.setCode(code);
        this.extendedFB.setType(VerifyType.LOGIN_VERIFY.getValue());
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }



}
